﻿function DDForDivInvisible() {
    try {
        var arrlstCombos = new Array(2);
        arrlstCombos[0] = "ctl00_ContentPlaceHolder3_p_format_masks_message_validator_tip";
        arrlstCombos[1] = "ctl00_ContentPlaceHolder3_p_format_masks_is_valid_empty";

        for (iCount = 0; iCount < arrlstCombos.length; iCount++) {
            var ctrl = document.getElementById(arrlstCombos[iCount]);
            ctrl.style.visibility = "hidden";
        }
    }

    catch (Ex) {
        //alert(Ex.message);
    }
}

function DDForDivVisible() {
    try {
        var arrlstCombos = new Array(2);
        arrlstCombos[0] = "ctl00_ContentPlaceHolder3_p_format_masks_message_validator_tip";
        arrlstCombos[1] = "ctl00_ContentPlaceHolder3_p_format_masks_is_valid_empty";

        for (iCount = 0; iCount < arrlstCombos.length; iCount++) {
            var ctrl = document.getElementById(arrlstCombos[iCount]);
            ctrl.style.visibility = "visible";
        }
    }

    catch (Ex) {
        //alert(Ex.message);
    }
}

function showHideDIV() {
    /* Commanded by 'Imran Gani' on 22-Nov-12, to use Jquery.
    if (document.getElementById("div_advanced").style.display == "block")
    {
    document.getElementById("div_advanced").style.display = "none";
    document.getElementById("img_advanced").src = "Images/expand3.gif";
    }
    else
    {
    document.getElementById("div_advanced").style.display = "block";
    document.getElementById("img_advanced").src = "Images/collapse3.gif";
    }*/
    if ($("#div_advanced").is(":hidden")) // Added by 'Imran Gani' on 22-Nov-12, to use Jquery.
    {
        $("#img_advanced").attr("title", "Click to collapse");
        $("#div_advanced").slideDown();
        $("#img_advanced").attr("src", "Images/collapse3.gif");
    }
    else {
        $("#img_advanced").attr("title", "Click to expand");
        $("#div_advanced").slideUp();
        $("#img_advanced").attr("src", "Images/expand3.gif");
    }
}